我们需要控制鱼,让其可以左右移动来捕食。我们将使用事件来添加用户控件。

  • fish_food 的直径更改为 10
  • 将鱼食的颜色改为 "sienna"
  • 点击 并拖出 Left KeyRight Key
  • Left KeyRight Key 中的数字更改为 30

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)